package org.yxing.palpalgps.utils;

import org.yxing.palpalgps.domain.UserInfoLoader;
import org.yxing.palpalgps.http.FetchData;

import android.app.Notification;
import android.content.Context;

public class App {
    private static App instance;
    
    private Context mContext;
    private Notification chatNotification;
    private FetchData mFetchData;
    private UserInfoLoader mUserInfoLoader;
    
    public static App getInstance(Context context) {
        if (instance == null) {
            instance = new App();
            instance.mContext = context;
        }
        
        return instance;
    }
    
    private App() {
    }
    
    public Notification getChatNotification() {
        return chatNotification;
    }
    
    public void setChatNotification(Notification chatNotification) {
        this.chatNotification = chatNotification;
    }

    public UserInfoLoader getmUserInfoLoader() {
        return mUserInfoLoader;
    }

    public void setmUserInfoLoader(UserInfoLoader mUserInfoLoader) {
        this.mUserInfoLoader = mUserInfoLoader;
    }
}
